<{if $aCart.object.goods}>
<ul class="pt-list">
  <!-- 主商品 -->
  <{foreach from=$aCart.object.goods item=goods key=_obj_key}>
    <li class="pt-h-item c-fix"> 
      <a href="<{link app=b2c ctl=wap_product arg0=$goods.obj_items.products.0.product_id}>" class="pt-h-link">
        <div class="pt-h-img"><img src="<{$goods.obj_items.products.0.thumbnail|storager:'s'}>"></div>
          <div class="pt-h-info">
            <div class="pt-h-name">
              <{$goods.obj_items.products.0.name}>
            </div>
            <div class="pt-h-other">
              <{$goods.obj_items.products.0.spec_info}>
              <{if $goods.special_type}>
                <span class="p-info">[<{$goods.special_type}>]</span>
              <{/if}>
            </div>
            <div class="col2">
              <div class="col price">
                 <!--@by zeng 2017.4.18-->
                <{if $goods.obj_items.products.0.price.status == 1}>
                  <!-- <{$goods.obj_items.products.0.price.mlv_price|cur_odr}> -->
                  <!-- 有促销活动小计费除以购物车数量等于供货价 -->
              <{(($goods.obj_items.products.0.price.mlv_price*$goods.quantity)-(($goods.discount_amount_prefilter)+(($goods.obj_items.products.0.price.mlv_price-$goods.obj_items.products.0.price.member_lv_price)*$goods.quantity)))/$goods.quantity|cur_odr}>/<{$goods.unit}>
                <{else}>
                  <{$goods.obj_items.products.0.price.price|cur_odr}>
                <{/if}>
                  <!--end-->
              </div>
              <div class="col t-r">
                数量：<{$goods.quantity}>
              </div>
            </div>
        </div>
      </a>
        <!-- heng 增加小计 -->
        <div class="u-total2">
            <{if $goods.obj_items.products.0.price.status == 1}>
               小计：<{($goods.obj_items.products.0.price.mlv_price*$goods.quantity)-(($goods.discount_amount_prefilter)+(($goods.obj_items.products.0.price.mlv_price-$goods.obj_items.products.0.price.member_lv_price)*$goods.quantity))|cur_odr}>
            <{else}>
               小计：<{$goods.obj_items.products.0.price.mlv_price*$goods.quantity|cur_odr}>
            <{/if}>
        </div>
    </li>

    <!-- 赠品 --> <!--判断是不是预售商品-->
    <{if $promotion_type != 'prepare'}>
      <{if $goods.gift}>
      <{foreach from=$goods.gift item=gift key=_gift_key}>
      <li class="pt-h-item c-fix">
          <div class="pt-h-img"><img src="<{$gift.thumbnail|storager:'s'}>"></div>
          <div class="pt-h-info">
            <div class="pt-h-name">
              <label class="f-red">[赠品] </label><{$gift.name}>
            </div>
            <div class="pt-h-other">
              <{$gift.spec_desc}>
            </div>
            <div class="col2">
              <!--  add 这里判断登录--和未登录-价格不显示 -->
              <{if $check_login=="login"}>
              <!--  end 这里判断登录--和未登录-价格不显示 -->  
              <div class="col price">
                <{$gift.price.price|cur_odr}>
              </div>
              <!--  add 这里判断登录--和未登录-价格不显示 -->  
				      <{/if}>  	
				      <!--  end 这里判断登录--和未登录-价格不显示 -->  
              <div class="col t-r">
                数量：<{$gift.quantity}>
              </div>
            </div>
          </div
      </li>
      <{/foreach}>
      <{/if}>
    <{/if}>

    <!-- 商品促销 -->
    <{if $promotion_type != 'prepare'}>
      <{if $aCart.promotion.goods.[$goods.obj_ident]}>
      <div class="pt-h-pro">
        <span class="J-pre">
          商品促销
          <i class="arr down"></i>
          <i class="arr top"></i>
        </span>
        <div class="pre-info hide">
          <{foreach from=$aCart.promotion.goods.[$goods.obj_ident] item=goods_promotion}>
          <{if $goods_promotion.cart_display}>
          <div class="box">
            <em class="col f-red">[<{$goods_promotion.desc_tag}>]</em>
            <span class="col"><{$goods_promotion.name}></span>
          </div>
          <{/if}>
          <{/foreach}>
        </div>
      </div>
      <{/if}>
    <{/if}>

    <!-- 配件 -->
    <{foreach from=$goods.adjunct item=adjunct key=key name=adjunct}>
    <li class="pt-h-item c-fix">
      <a href="<{link app=b2c ctl=wap_product arg0=$adjunct.product_id}>" class="pt-h-link">
        <div class="pt-h-img"><img src="<{$adjunct.thumbnail|storager:'s'}>"></div>
        <div class="pt-h-info">
          <div class="pt-h-name">
            <label class="f-red">[配件商品]</label><{$adjunct.name}>
          </div>
          <div class="pt-h-other">
            <{$adjunct.spec_info}>
          </div>
          <div class="col2">
              <!--  add 这里判断登录--和未登录-价格不显示 -->
              <{if $check_login=="login"}>
              <!--  end 这里判断登录--和未登录-价格不显示 -->  
            <div class="col price">
              <{$adjunct.json_price.price|cur_odr}>
            </div>
              <!--  add 这里判断登录--和未登录-价格不显示 -->  
				     <{/if}>  	
				     <!--  end 这里判断登录--和未登录-价格不显示 -->  
            <div class="col t-r">
              数量：<{$adjunct.quantity}>
            </div>
          </div>
          <div class="p-discount">
              优惠金额：<{($adjunct.json_price.price-$adjunct.price.buy_price)*$adjunct.quantity|cur_odr}>
          </div>
        </div>
      </a>
    </li>
    <{/foreach}>
  <{/foreach}>
<{/if}>

<script type="text/javascript">
$('.J-pre').on('click',function(){
  $(this).toggleClass('act');
  $(this).next().toggleClass('hide');
});
</script>
